import { Input, Space } from "antd"
import { useState } from "react"

const InputDemo = () => {
  const [value, setValue] = useState('')
  return (
    <>
      <h3>--表单输入</h3>
      <Space>
        <Input
          value={value}
          onChange={e => setValue(e.target.value)}
          style={{ width: 200 }}
        />
        <span>value: {value}</span>
      </Space>
    </>
  )
}

export default InputDemo
